import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)
import Home from "../pages/Home/Home";
import Cinema from "../pages/Cinema/Cinema";
import Me from "../pages/Me/Me";
import MovieDetail from "../pages/MoiveDetail/MovieDetail";
import CinemaDetail from "../pages/CinemaDetail/CinemaDetail";


export default new Router({
  routes: [
    {
      path: "/home",
      component: Home
    },
    {
      path:"/movie/detail/:id",
      name:"detail",
      component: MovieDetail
    },
    {
      path: "/cinema",
      component: Cinema,
    },
    {
      path : '/cinema/detail/:id',
      name: 'cdetail',
      component: CinemaDetail
    },
    {
      path: "/me",
      component: Me
    },
    {
      path: "*",
      redirect: "/home"
    }
  ]
})
